/**
 * 
 */
package design_pattern.decorator.order;

/**
 * @author linzq
 * 
 */
public class FooterDecorator extends OrderDecorator {

  /**
   * @param order
   */
  public FooterDecorator(Order order) {
    super(order);
  }

  @Override
  public void print() {
    this.printFooter();
    super.print();
  }

  /**
   * 
   */
  private void printFooter() {
    System.out.println("=================================");
    System.out.println("Total\t\t\t" + formatCurrency(super.order.getGrandTotal()));
  }
}
